<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>我的订单 - 奢享时光</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
  <style>
    :root {
      --primary-gradient: linear-gradient(135deg, #7F00FF, #E100FF);
      --secondary-gradient: linear-gradient(135deg, #00F5A0, #00D9F5);
      --primary-color: #7F00FF;
      --secondary-color: #00F5A0;
      --accent-color: #FFE600;
      --dark-bg: #2D1B69;
      --light-bg: #6B3FA0;
      --text-light: #FFFFFF;
      --text-secondary: #E0D5FF;
      --card-bg: rgba(255, 255, 255, 0.1);
      --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      --border-radius: 16px;
      --border: 1px solid rgba(255, 255, 255, 0.18);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
    }

    body {
      font-family: 'Noto Sans SC', 'Poppins', sans-serif;
      background: var(--dark-bg);
      color: var(--text-light);
      font-size: 14px;
      line-height: 1.5;
      overflow-x: hidden;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    button {
      font-family: inherit;
      cursor: pointer;
      border: none;
      outline: none;
    }

    .app-container {
      max-width: 480px;
      margin: 0 auto;
      min-height: 100vh;
      background: linear-gradient(180deg, var(--dark-bg), var(--light-bg));
      position: relative;
      overflow: hidden;
      padding-bottom: 70px;
    }

    /* 背景装饰 */
    .bg-decoration {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .bg-circle {
      position: absolute;
      border-radius: 50%;
    }

    .bg-circle:nth-child(1) {
      width: 300px;
      height: 300px;
      top: -150px;
      right: -100px;
      background: radial-gradient(circle, rgba(225, 0, 255, 0.2), rgba(225, 0, 255, 0));
    }

    .bg-circle:nth-child(2) {
      width: 250px;
      height: 250px;
      bottom: 10%;
      left: -100px;
      background: radial-gradient(circle, rgba(0, 245, 160, 0.15), rgba(0, 245, 160, 0));
    }

    /* 顶部导航 */
    .header {
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      background: rgba(45, 27, 105, 0.8);
      padding: 15px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: var(--border);
    }

    .back-button {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
    }

    .page-title {
      font-size: 18px;
      font-weight: 600;
    }

    .header-actions {
      display: flex;
      gap: 15px;
    }

    .header-actions i {
      font-size: 18px;
      color: var(--text-light);
      opacity: 0.9;
    }

    /* 内容区域 */
    .content {
      position: relative;
      z-index: 1;
      padding: 20px;
    }

    /* 订单选项卡 */
    .tabs-container {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: var(--border);
      border-radius: var(--border-radius);
      padding: 15px 20px;
      margin-bottom: 25px;
      box-shadow: var(--shadow);
    }

    .tabs {
      display: flex;
      gap: 5px;
      justify-content: space-between;
    }

    .tab {
      padding: 8px 0;
      text-align: center;
      font-size: 13px;
      color: var(--text-secondary);
      position: relative;
      flex: 1;
      transition: all 0.3s ease;
      border-radius: 8px;
    }

    .tab.active {
      color: var(--text-light);
      background: rgba(255, 255, 255, 0.05);
    }

    .tab.active::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 25%;
      right: 25%;
      height: 3px;
      background: var(--secondary-gradient);
      border-radius: 3px;
    }

    .tab-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 18px;
      background: var(--accent-color);
      color: var(--dark-bg);
      font-size: 10px;
      font-weight: 700;
      border-radius: 50%;
      margin-left: 5px;
      vertical-align: text-top;
    }

    /* 订单列表 */
    .orders-empty {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      padding: 40px 20px;
      text-align: center;
      margin-bottom: 20px;
    }

    .empty-icon {
      font-size: 40px;
      color: var(--text-secondary);
      opacity: 0.5;
      margin-bottom: 15px;
    }

    .empty-text {
      font-size: 15px;
      color: var(--text-secondary);
      margin-bottom: 20px;
    }

    .browse-button {
      background: var(--primary-gradient);
      padding: 10px 24px;
      border-radius: 100px;
      font-size: 14px;
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: all 0.3s ease;
      box-shadow: 0 5px 15px rgba(127, 0, 255, 0.3);
    }

    .browse-button:active {
      transform: scale(0.97);
    }

    .order-item {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
      border: var(--border);
      border-radius: var(--border-radius);
      padding: 15px;
      margin-bottom: 15px;
      box-shadow: var(--shadow);
    }

    .order-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      margin-bottom: 12px;
    }

    .order-shop {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      font-weight: 500;
    }

    .order-status {
      font-size: 13px;
      color: var(--accent-color);
    }

    .order-status.paid {
      color: var(--secondary-color);
    }

    .order-status.shipping {
      color: #00D9F5;
    }

    .order-content {
      display: flex;
      gap: 12px;
      margin-bottom: 15px;
    }

    .order-image {
      width: 70px;
      height: 70px;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.05);
      overflow: hidden;
      flex-shrink: 0;
    }

    .order-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .order-details {
      flex: 1;
    }

    .order-name {
      font-size: 14px;
      font-weight: 500;
      margin-bottom: 6px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .order-specs {
      font-size: 12px;
      color: var(--text-secondary);
      margin-bottom: 8px;
    }

    .order-price {
      font-size: 16px;
      font-weight: 600;
      color: var(--accent-color);
    }

    .order-quantity {
      font-size: 13px;
      color: var(--text-secondary);
    }

    .order-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .order-total {
      font-size: 13px;
    }

    .order-amount {
      font-size: 16px;
      font-weight: 600;
      color: var(--accent-color);
    }

    .order-actions {
      display: flex;
      gap: 8px;
    }

    .order-button {
      padding: 8px 15px;
      border-radius: 100px;
      font-size: 12px;
      font-weight: 500;
      background: rgba(255, 255, 255, 0.1);
      color: var(--text-secondary);
      transition: all 0.3s ease;
    }

    .order-button.primary {
      background: var(--primary-gradient);
      color: var(--text-light);
    }

    .order-button:active {
      transform: scale(0.97);
    }

    /* 底部导航 */
    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      max-width: 480px;
      margin: 0 auto;
      background: rgba(45, 27, 105, 0.8);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-top: var(--border);
      display: flex;
      justify-content: space-around;
      padding: 12px 0;
      z-index: 100;
    }

    .nav-button {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 5px;
      color: var(--text-secondary);
      font-size: 12px;
      padding: 5px 0;
      flex: 1;
      transition: all 0.3s ease;
    }

    .nav-button i {
      font-size: 18px;
      margin-bottom: 2px;
    }

    .nav-button.active {
      color: var(--accent-color);
    }
  </style>
</head>
<body>
  <div class="app-container">
    <!-- 背景装饰 -->
    <div class="bg-decoration">
      <div class="bg-circle"></div>
      <div class="bg-circle"></div>
    </div>

    <!-- 顶部导航 -->
    <header class="header">
      <a href="profile.html" class="back-button">
        <i class="fas fa-arrow-left"></i>
      </a>
      <div class="page-title">我的订单</div>
      <div class="header-actions">
        <i class="fas fa-search"></i>
      </div>
    </header>

    <!-- 主要内容 -->
    <main class="content">
      <!-- 订单选项卡 -->
      <section class="tabs-container">
        <div class="tabs">
          <div class="tab active">全部</div>
          <div class="tab">待付款<span class="tab-badge">2</span></div>
          <div class="tab">待发货<span class="tab-badge">1</span></div>
          <div class="tab">待收货</div>
          <div class="tab">待评价</div>
        </div>
      </section>

      <!-- 订单列表 -->
      <section class="orders-list">
        <!-- 待付款订单 -->
        <div class="order-item">
          <div class="order-header">
            <div class="order-shop">
              <i class="fas fa-store"></i>
              <span>奢享时光官方旗舰店</span>
            </div>
            <div class="order-status">待付款</div>
          </div>
          <div class="order-content">
            <div class="order-image">
              <img src="https://via.placeholder.com/70x70" alt="天然珍珠项链">
            </div>
            <div class="order-details">
              <div class="order-name">高级定制天然淡水珍珠项链 925银镶钻扣头</div>
              <div class="order-specs">颜色：白色 | 尺寸：42cm</div>
              <div class="order-price">¥1,299.00</div>
            </div>
            <div class="order-quantity">x1</div>
          </div>
          <div class="order-footer">
            <div class="order-total">
              共1件商品 合计：<span class="order-amount">¥1,299.00</span>
            </div>
            <div class="order-actions">
              <div class="order-button">取消订单</div>
              <div class="order-button primary">立即付款</div>
            </div>
          </div>
        </div>

        <!-- 待发货订单 -->
        <div class="order-item">
          <div class="order-header">
            <div class="order-shop">
              <i class="fas fa-store"></i>
              <span>奢享时光官方旗舰店</span>
            </div>
            <div class="order-status paid">待发货</div>
          </div>
          <div class="order-content">
            <div class="order-image">
              <img src="https://via.placeholder.com/70x70" alt="奢华护肤套装">
            </div>
            <div class="order-details">
              <div class="order-name">法国进口奢华护肤套装 抗衰老精华液+面霜+精华水</div>
              <div class="order-specs">规格：套装</div>
              <div class="order-price">¥2,680.00</div>
            </div>
            <div class="order-quantity">x1</div>
          </div>
          <div class="order-footer">
            <div class="order-total">
              共1件商品 合计：<span class="order-amount">¥2,680.00</span>
            </div>
            <div class="order-actions">
              <div class="order-button">查看详情</div>
              <div class="order-button primary">提醒发货</div>
            </div>
          </div>
        </div>

        <!-- 已完成订单 -->
        <div class="order-item">
          <div class="order-header">
            <div class="order-shop">
              <i class="fas fa-store"></i>
              <span>奢享时光官方旗舰店</span>
            </div>
            <div class="order-status shipping">已完成</div>
          </div>
          <div class="order-content">
            <div class="order-image">
              <img src="https://via.placeholder.com/70x70" alt="高级香水">
            </div>
            <div class="order-details">
              <div class="order-name">法国进口女士香水 持久留香 礼盒装</div>
              <div class="order-specs">规格：50ml</div>
              <div class="order-price">¥780.00</div>
            </div>
            <div class="order-quantity">x1</div>
          </div>
          <div class="order-footer">
            <div class="order-total">
              共1件商品 合计：<span class="order-amount">¥780.00</span>
            </div>
            <div class="order-actions">
              <div class="order-button">查看详情</div>
              <div class="order-button primary">再次购买</div>
            </div>
          </div>
        </div>
      </section>
    </main>

    <!-- 底部导航 -->
    <nav class="bottom-nav">
      <a href="index.html" class="nav-button">
        <i class="fas fa-home"></i>
        <span>首页</span>
      </a>
      <a href="groupbuy.html" class="nav-button">
        <i class="fas fa-users"></i>
        <span>拼团</span>
      </a>
      <a href="shares.html" class="nav-button">
        <i class="fas fa-chart-line"></i>
        <span>股权</span>
      </a>
      <a href="profile.html" class="nav-button active">
        <i class="fas fa-user"></i>
        <span>我的</span>
      </a>
    </nav>
  </div>

  <script>
    document.addEventListener('DOMContentLoaded', function() {
      // 选项卡切换功能
      const tabs = document.querySelectorAll('.tab');
      const ordersList = document.querySelector('.orders-list');
      
      tabs.forEach(tab => {
        tab.addEventListener('click', function() {
          tabs.forEach(t => t.classList.remove('active'));
          this.classList.add('active');
          
          const tabText = this.textContent.replace(/\d+/g, '').trim();
          
          if (tabText === '待付款') {
            ordersList.innerHTML = `
              <div class="order-item">
                <div class="order-header">
                  <div class="order-shop">
                    <i class="fas fa-store"></i>
                    <span>奢享时光官方旗舰店</span>
                  </div>
                  <div class="order-status">待付款</div>
                </div>
                <div class="order-content">
                  <div class="order-image">
                    <img src="https://via.placeholder.com/70x70" alt="天然珍珠项链">
                  </div>
                  <div class="order-details">
                    <div class="order-name">高级定制天然淡水珍珠项链 925银镶钻扣头</div>
                    <div class="order-specs">颜色：白色 | 尺寸：42cm</div>
                    <div class="order-price">¥1,299.00</div>
                  </div>
                  <div class="order-quantity">x1</div>
                </div>
                <div class="order-footer">
                  <div class="order-total">
                    共1件商品 合计：<span class="order-amount">¥1,299.00</span>
                  </div>
                  <div class="order-actions">
                    <div class="order-button">取消订单</div>
                    <div class="order-button primary">立即付款</div>
                  </div>
                </div>
              </div>
              <div class="order-item">
                <div class="order-header">
                  <div class="order-shop">
                    <i class="fas fa-store"></i>
                    <span>奢享时光官方旗舰店</span>
                  </div>
                  <div class="order-status">待付款</div>
                </div>
                <div class="order-content">
                  <div class="order-image">
                    <img src="https://via.placeholder.com/70x70" alt="钻石耳钉">
                  </div>
                  <div class="order-details">
                    <div class="order-name">18K金钻石耳钉 简约永恒系列</div>
                    <div class="order-specs">款式：星星</div>
                    <div class="order-price">¥3,980.00</div>
                  </div>
                  <div class="order-quantity">x1</div>
                </div>
                <div class="order-footer">
                  <div class="order-total">
                    共1件商品 合计：<span class="order-amount">¥3,980.00</span>
                  </div>
                  <div class="order-actions">
                    <div class="order-button">取消订单</div>
                    <div class="order-button primary">立即付款</div>
                  </div>
                </div>
              </div>
            `;
          } else if (tabText === '待发货') {
            ordersList.innerHTML = `
              <div class="order-item">
                <div class="order-header">
                  <div class="order-shop">
                    <i class="fas fa-store"></i>
                    <span>奢享时光官方旗舰店</span>
                  </div>
                  <div class="order-status paid">待发货</div>
                </div>
                <div class="order-content">
                  <div class="order-image">
                    <img src="https://via.placeholder.com/70x70" alt="奢华护肤套装">
                  </div>
                  <div class="order-details">
                    <div class="order-name">法国进口奢华护肤套装 抗衰老精华液+面霜+精华水</div>
                    <div class="order-specs">规格：套装</div>
                    <div class="order-price">¥2,680.00</div>
                  </div>
                  <div class="order-quantity">x1</div>
                </div>
                <div class="order-footer">
                  <div class="order-total">
                    共1件商品 合计：<span class="order-amount">¥2,680.00</span>
                  </div>
                  <div class="order-actions">
                    <div class="order-button">查看详情</div>
                    <div class="order-button primary">提醒发货</div>
                  </div>
                </div>
              </div>
            `;
          } else if (tabText === '待收货') {
            ordersList.innerHTML = `
              <div class="orders-empty">
                <div class="empty-icon">
                  <i class="fas fa-box-open"></i>
                </div>
                <div class="empty-text">暂无待收货订单</div>
                <a href="index.html" class="browse-button">
                  <i class="fas fa-shopping-bag"></i>
                  <span>去逛逛</span>
                </a>
              </div>
            `;
          } else if (tabText === '待评价') {
            ordersList.innerHTML = `
              <div class="orders-empty">
                <div class="empty-icon">
                  <i class="fas fa-comment-dots"></i>
                </div>
                <div class="empty-text">暂无待评价订单</div>
                <a href="index.html" class="browse-button">
                  <i class="fas fa-shopping-bag"></i>
                  <span>去逛逛</span>
                </a>
              </div>
            `;
          } else {
            // 全部订单
            ordersList.innerHTML = `
              <div class="order-item">
                <div class="order-header">
                  <div class="order-shop">
                    <i class="fas fa-store"></i>
                    <span>奢享时光官方旗舰店</span>
                  </div>
                  <div class="order-status">待付款</div>
                </div>
                <div class="order-content">
                  <div class="order-image">
                    <img src="https://via.placeholder.com/70x70" alt="天然珍珠项链">
                  </div>
                  <div class="order-details">
                    <div class="order-name">高级定制天然淡水珍珠项链 925银镶钻扣头</div>
                    <div class="order-specs">颜色：白色 | 尺寸：42cm</div>
                    <div class="order-price">¥1,299.00</div>
                  </div>
                  <div class="order-quantity">x1</div>
                </div>
                <div class="order-footer">
                  <div class="order-total">
                    共1件商品 合计：<span class="order-amount">¥1,299.00</span>
                  </div>
                  <div class="order-actions">
                    <div class="order-button">取消订单</div>
                    <div class="order-button primary">立即付款</div>
                  </div>
                </div>
              </div>

              <div class="order-item">
                <div class="order-header">
                  <div class="order-shop">
                    <i class="fas fa-store"></i>
                    <span>奢享时光官方旗舰店</span>
                  </div>
                  <div class="order-status paid">待发货</div>
                </div>
                <div class="order-content">
                  <div class="order-image">
                    <img src="https://via.placeholder.com/70x70" alt="奢华护肤套装">
                  </div>
                  <div class="order-details">
                    <div class="order-name">法国进口奢华护肤套装 抗衰老精华液+面霜+精华水</div>
                    <div class="order-specs">规格：套装</div>
                    <div class="order-price">¥2,680.00</div>
                  </div>
                  <div class="order-quantity">x1</div>
                </div>
                <div class="order-footer">
                  <div class="order-total">
                    共1件商品 合计：<span class="order-amount">¥2,680.00</span>
                  </div>
                  <div class="order-actions">
                    <div class="order-button">查看详情</div>
                    <div class="order-button primary">提醒发货</div>
                  </div>
                </div>
              </div>

              <div class="order-item">
                <div class="order-header">
                  <div class="order-shop">
                    <i class="fas fa-store"></i>
                    <span>奢享时光官方旗舰店</span>
                  </div>
                  <div class="order-status shipping">已完成</div>
                </div>
                <div class="order-content">
                  <div class="order-image">
                    <img src="https://via.placeholder.com/70x70" alt="高级香水">
                  </div>
                  <div class="order-details">
                    <div class="order-name">法国进口女士香水 持久留香 礼盒装</div>
                    <div class="order-specs">规格：50ml</div>
                    <div class="order-price">¥780.00</div>
                  </div>
                  <div class="order-quantity">x1</div>
                </div>
                <div class="order-footer">
                  <div class="order-total">
                    共1件商品 合计：<span class="order-amount">¥780.00</span>
                  </div>
                  <div class="order-actions">
                    <div class="order-button">查看详情</div>
                    <div class="order-button primary">再次购买</div>
                  </div>
                </div>
              </div>
            `;
          }
        });
      });
      
      // 订单按钮交互效果
      document.addEventListener('click', function(e) {
        if (e.target.classList.contains('order-button')) {
          if (e.target.textContent === '取消订单') {
            const confirmed = confirm('确定要取消此订单吗？');
            if (confirmed) {
              alert('订单已取消');
              e.target.closest('.order-item').remove();
            }
          } else if (e.target.textContent === '立即付款') {
            alert('正在跳转到支付页面...');
          } else if (e.target.textContent === '提醒发货') {
            alert('已提醒商家尽快发货');
            e.target.textContent = '已提醒';
            e.target.classList.remove('primary');
          }
        }
      });
      
      // 页面加载动画
      const orderItems = document.querySelectorAll('.order-item');
      orderItems.forEach((item, index) => {
        item.style.opacity = '0';
        item.style.transform = 'translateY(20px)';
        item.style.transition = `opacity 0.5s ease, transform 0.5s ease`;
        
        setTimeout(() => {
          item.style.opacity = '1';
          item.style.transform = 'translateY(0)';
        }, 100 + (index * 150));
      });
    });
  </script>
</body>
</html> 